// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.geeke.entity.base.EntityBase;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperIndex;
import top.geeke.toolkit.supertable.annotation.SuperTable;

import java.io.Serializable;

/**
 * <p>
 * 系统文件表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_file")
@SuperTable(value = "系统文件表", isSystem = true, indexes = {
        @SuperIndex(indexName ="sys_index_{table}_F", indexFields ="fileName")
})
public class SysFile extends EntityBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "提供者", nullable = true, length = 128)
    private String provider;

    @SuperColumn(value = "仓库名称", nullable = true, length = 128)
    private String bucketName;

    @SuperColumn(value = "文件名", nullable = true, length = 128)
    private String fileName;

    @SuperColumn(value = "文件后缀", nullable = true, length = 16)
    private String suffix;

    @SuperColumn(value = "存储路径", nullable = true, length = 128)
    private String filePath;

    @SuperColumn(value = "文件大小KB", nullable = true, length = 16)
    private String sizeKb;

    @SuperColumn(value = "文件大小信息", nullable = true, length = 64)
    private String sizeInfo;

    @SuperColumn(value = "外链地址", nullable = true, length = 512)
    private String url;

    @SuperColumn(value = "文件MD5", nullable = true, length = 128)
    private String md5;
}
